import { onMounted, ref } from 'vue'

import { getSingerList as getSingerListApi } from '@/api'


export default function () {

    let list = ref([])

    function getSingerList() {
        getSingerListApi().then((res) => {
            console.log(res)
            list.value = res.result.singers
        })
    }

    onMounted(() => {
        getSingerList()
    })

    return {
        list
    }
}